﻿using System.Collections.Generic;



namespace Crocodile.SimplexLanguage.Tree
{
    public interface SimplexBlock
    {

        /// <summary>
        /// Content of the block: inner entities.
        /// </summary>
        IList<SimplexEntity> Content { get; }

        /// <summary>
        /// Offset (see <see cref="SimplexEntity.Offset"/>).
        /// Or <c>-1</c> for a file.
        /// </summary>
        int Offset { get; }

        /// <summary>
        /// Checks whether the entity has at least one sub line.
        /// </summary>
        bool HasContent { get; }

    }
}
